package cn.matezk.lianlian.dao;

import cn.matezk.lianlian.model.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {
    int insertSelective(User user);
    User selectByUserId(String userId);
    User selectByPrimaryKey(String unionId);
    int updateByPrimaryKeySelective(User user);
    int updateByOpenIdSelective(User user);
    List<String> selectWechatNotifyUser(@Param("familyId") String familyId, @Param("deviceId") String deviceId);
    Integer userAmount(Long userId);
    int updateAmount(@Param("userId") Long userId, @Param("amount") Integer amount);
}
